package com.jt.springboot_demo1.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)//开启链式加载
@NoArgsConstructor
@AllArgsConstructor
@TableName()//对象和表的映射
public class User {
    @TableId(type = IdType.AUTO)//自增主键
    Integer id;
    String name;
    Integer age;
    String sex;
}
